<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>15 vue boolean</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        {{num}}
        <span v-if = "num >= 90">优秀</span>
        <span v-else-if = "num >= 80">良好</span>
        <span v-else-if = "num >= 60">及格</span>
        <span v-else = "num < 60">不及格</span>


    </div>
    
</body>
    <script>

        new Vue({
            el : "#app",
            data : {
                num : Math.round(Math.random() * 100),
            }
        })
    </script>
</html>